package com.lxc.graduation.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lxc.graduation.dao.JudicialDocumentMapper;
import com.lxc.graduation.entity.domain.JudicialDocument;
import com.lxc.graduation.service.JudicialDocumentService;
import com.lxc.graduation.utils.JsonData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: ck
 * @Description:
 * @Date: Create in 13:30 2021/3/4
 */
@Service
@Slf4j
public class JudicialDocumentServiceImpl implements JudicialDocumentService {
    @Autowired
    private JudicialDocumentMapper judicialDocumentMapper;

    @Override
    public List<JudicialDocument> findAll() {
        return judicialDocumentMapper.selectList(new QueryWrapper<>());
    }

    @Override
    public JudicialDocument findById(Integer id) {
        return judicialDocumentMapper.selectById(id);
    }
}
